#!/bin/bash
DIR=$(dirname $0)
PWDPATH=$(cd $DIR && pwd)

cd $PWDPATH

install() {
  npm install -d

  $PWDPATH/playground/npm.sh install
}

clean() {
  rm -rf ./node_modules
  rm -rf ./package-lock.json

  $PWDPATH/playground/npm.sh clean
}

case "$1" in
install)
  $1
  exit 0
  ;;
clean)
  $1
  exit 0
  ;;
*)
  echo $DIR
  echo 'Usage: {install|clean}'
  ;;
esac
